package com.tfswx.jcyw.ruleenginedesigner.service;

import com.tfswx.jcyw.ruleenginedesigner.dto.fs.FileDownloadInputDTO;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;

/**
 * @author Ricky
 * @date 2021/4/19
 */
public interface FsService {
    /**
     * 下载文件
     *
     * @param inputDto
     * @return void
     * @throws IOException
     */
    void download(FileDownloadInputDTO inputDto);

    void download(File file, String fileName);

    void download(byte[] bytes, String fileName);

    void download(InputStream is, String fileName);
}
